home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Interfaces&Libraries / Universal / Interfaces / AIncludes / ToolUtils.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  3.9 KB  |  170 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        ToolUtils.a
  3. ;
  4. ;    Contains:    Toolbox Utilities Interfaces.
  5. ;
  6. ;    Version:    Technology:    System 7.5
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1990-1998 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__TOOLUTILS__') = 'UNDEFINED' THEN
  18. __TOOLUTILS__ SET 1
  19.  
  20.     IF &TYPE('__MACTYPES__') = 'UNDEFINED' THEN
  21.     include 'MacTypes.a'
  22.     ENDIF
  23.     IF &TYPE('__OSUTILS__') = 'UNDEFINED' THEN
  24.     include 'OSUtils.a'
  25.     ENDIF
  26.  
  27.     IF OLDROUTINELOCATIONS THEN
  28.     IF &TYPE('__FIXMATH__') = 'UNDEFINED' THEN
  29.     include 'FixMath.a'
  30.     ENDIF
  31.     IF &TYPE('__ICONS__') = 'UNDEFINED' THEN
  32.     include 'Icons.a'
  33.     ENDIF
  34.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  35.     include 'Quickdraw.a'
  36.     ENDIF
  37.     IF &TYPE('__TEXTUTILS__') = 'UNDEFINED' THEN
  38.     include 'TextUtils.a'
  39.     ENDIF
  40.     ENDIF    ; OLDROUTINELOCATIONS
  41.  
  42. ;————————————————————————————————————————————————————————————————————————————————————
  43. ;    Note: 
  44. ;    
  45. ;    The following routines that used to be in this header file, have moved to
  46. ;    more appropriate headers.  If OLDROUTINELOCATIONS is 0, then you will have
  47. ;    to include the headers below to use the following functions.
  48. ;    
  49. ;        FixMath.h:        FixMul
  50. ;                        FixRatio
  51. ;                        FixRound
  52. ;        
  53. ;        Icons.h:          GetIcon
  54. ;                        PlotIcon
  55. ;                        
  56. ;        Quickdraw.h:    AngleFromSlope
  57. ;                        DeltaPoint
  58. ;                        GetCursor
  59. ;                        GetIndPattern
  60. ;                        GetPattern
  61. ;                        GetPicture
  62. ;                        PackBits
  63. ;                        ScreenRes
  64. ;                        ShieldCursor
  65. ;                        SlopeFromAngle
  66. ;                        UnpackBits
  67. ;                        
  68. ;        TextUtils.h:    Munger
  69. ;                        GetIndString
  70. ;                        GetString
  71. ;                        NewString
  72. ;                        SetString
  73. ;————————————————————————————————————————————————————————————————————————————————————
  74. ;
  75.  
  76.  
  77.  
  78. ;
  79. ; pascal Boolean BitTst(const void *bytePtr, long bitNum)
  80. ;
  81.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  82.         _BitTst:    OPWORD    $A85D
  83.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  84.         IMPORT_CFM_FUNCTION BitTst
  85.     ENDIF
  86.  
  87. ;
  88. ; pascal void BitSet(void *bytePtr, long bitNum)
  89. ;
  90.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  91.         _BitSet:    OPWORD    $A85E
  92.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  93.         IMPORT_CFM_FUNCTION BitSet
  94.     ENDIF
  95.  
  96. ;
  97. ; pascal void BitClr(void *bytePtr, long bitNum)
  98. ;
  99.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  100.         _BitClr:    OPWORD    $A85F
  101.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  102.         IMPORT_CFM_FUNCTION BitClr
  103.     ENDIF
  104.  
  105. ;
  106. ; pascal long BitAnd(long value1, long value2)
  107. ;
  108.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  109.         _BitAnd:    OPWORD    $A858
  110.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  111.         IMPORT_CFM_FUNCTION BitAnd
  112.     ENDIF
  113.  
  114. ;
  115. ; pascal long BitOr(long value1, long value2)
  116. ;
  117.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  118.         _BitOr:    OPWORD    $A85B
  119.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  120.         IMPORT_CFM_FUNCTION BitOr
  121.     ENDIF
  122.  
  123. ;
  124. ; pascal long BitXor(long value1, long value2)
  125. ;
  126.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  127.         _BitXor:    OPWORD    $A859
  128.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  129.         IMPORT_CFM_FUNCTION BitXor
  130.     ENDIF
  131.  
  132. ;
  133. ; pascal long BitNot(long value)
  134. ;
  135.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  136.         _BitNot:    OPWORD    $A85A
  137.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  138.         IMPORT_CFM_FUNCTION BitNot
  139.     ENDIF
  140.  
  141. ;
  142. ; pascal long BitShift(long value, short count)
  143. ;
  144.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  145.         _BitShift:    OPWORD    $A85C
  146.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  147.         IMPORT_CFM_FUNCTION BitShift
  148.     ENDIF
  149.  
  150.     IF TARGET_CPU_68K THEN
  151. Int64Bit                RECORD 0
  152. hiLong                     ds.l    1                ; offset: $0 (0)
  153. loLong                     ds.l    1                ; offset: $4 (4)
  154. sizeof                     EQU *                    ; size:   $8 (8)
  155.                         ENDR
  156. ;
  157. ; pascal void LongMul(long a, long b, Int64Bit *result)
  158. ;
  159.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  160.         _LongMul:    OPWORD    $A867
  161.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  162.         IMPORT_CFM_FUNCTION LongMul
  163.     ENDIF
  164.  
  165.     ENDIF    ; TARGET_CPU_68K
  166.  
  167.     ENDIF ; __TOOLUTILS__ 
  168.  
  169.